package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.ClearOrderSettingMapper;
import com.itheima.dao.OrderSettingMapper;
import com.itheima.pojo.OrderSetting;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

@Service(interfaceClass = ClearOrderSettingService.class)
@Transactional
public class ClearOrderSettingServiceImpl implements ClearOrderSettingService {

    @Autowired
    ClearOrderSettingMapper clearOrderSettingMapper;

    @Override
    public void deleteByBeforeTwoOrderDate(String format1, String format3) {
        clearOrderSettingMapper.deleteByBeforeTwoOrderDate(format1, format3);
    }
}
